TSource
IdeaBlade DevForce 2010 Help Reference
TakeWhile<TSource>(IEntityQuery<TSource>,Expression<Func<TSource,Int32,Boolean>>) Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > TakeWhile Method : TakeWhile<TSource>(IEntityQuery<TSource>,Expression<Func<TSource,Int32,Boolean>>) Method



source
predicate
Returns elements from a sequence as long as a specified condition is true, and then skips the remaining elements.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function TakeWhile(Of TSource)( _
   ByVal source As IEntityQuery(Of TSource), _
   ByVal predicate As Expression(Of Func(Of TSource,Integer,Boolean)) _
) As IEntityQuery(Of TSource)
Visual Basic (Usage)Copy Code
Dim source As IEntityQuery(Of TSource)
Dim predicate As Expression(Of Func(Of TSource,Integer,Boolean))
Dim value As IEntityQuery(Of TSource)
 
value = EntityQueryExtensions.TakeWhile(Of TSource)(source, predicate)

Parameters

source
predicate

Type Parameters

TSource

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.